﻿
using System.Data.Entity.ModelConfiguration;
using ProjetoComperio.DataLayer.Entities;

namespace ProjetoComperio.DataLayer.Configuration
{
    public class StudentConfiguration : EntityConfiguration<Student>
    {
        public StudentConfiguration()
        {

            Property(s => s.PersonID).IsIdentity();
            MapHierarchy(
                e => new
                {
                    e.PersonID,
                    e.StartDate,
                    e.CourseID,
                }
            ).ToTable("Student");
        }
    }
}
